
public class Code080 {
	public static void main(String[]args){
		for (int i = 0; i <10; i++) {
			for (int j = 0; j <10; j++) {
				if(i!=0&&i!=9&&0<j&&j<9){
					System.out.print(" ");
					continue;
				}
				System.out.print("*");	
			}
			System.out.println(" ");
			
		}
	}

}
